<div th:fragment="resourceChild">
    <th:block th:each="item,vs:${treeList}">
        <!--页面内容开始-->
        <tr class="warning">
            <td style="min-width:60px;" class="text-center">[[${item.id}]]</td>
            <td style="min-width:60px;" class="text-center">
                <selection th:if="${item.resType == 0}" class="text-info">页面</selection>
                <selection th:if="${item.resType == 1}" class="text-danger">菜单</selection>
            </td>
            <td style="min-width:200px;">
                <i class="fa" th:if="${level>0}" th:each="i:${#numbers.sequence(1,level)}">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</i>
                <i class="fa fa-file" th:if="${item.upChild>=1}"></i>
                <i class="fa fa-th-list" th:if="${item.upChild<1}"></i>
                [[${item.resSort}]]:[[${item.resName}]]
            </td>
            <td th:title="@{${item.resUrl}+'['+${item.resLimit}+']'}"
                style="min-width:200px;max-width:200px;">[[${item.resUrl}]]【[[${item .resLimit}]]】
            </td>
            <td style="min-width:100px;" class="p-xxs">
                <button class="btn btn-xs btn-primary" th:ljUrl="@{/sys/resource/detail(id=${item.id})}" title="资源详情" target="ljOpenCon">
                    <i class="fa fa-paste">详情</i>
                </button>
                <button class="btn btn-xs btn-info" th:ljUrl="@{/sys/resource/add(sid=${sid},mid=${mid},pid=${item.id})}" title="添加资源"
                        target="ljOpenCon">
                    <i class="fa fa-paste">添加</i>
                </button>
                <button class="btn btn-xs btn-success" th:ljUrl="@{/sys/resource/edit(id=${item.id})}" title="资源编辑?" target="ljOpenCon">
                    <i class="fa fa-paste">编辑</i>
                </button>
                <button class="btn btn-xs btn-danger" th:ljUrl="@{/sys/resource/del(id=${item.id})}" title="确认要删除该资源吗?" target="ljAjaxTodo">
                    <i class="fa fa-minus-circle">删除</i>
                </button>
                <button class="btn btn-xs btn-success" th:ljUrl="@{/sys/resource/match(id=${item.id})}" title="确认要匹配地址吗?" target="ljOpenCon">
                    <i class="fa fa-paste">匹配</i>
                </button>
            </td>
        </tr>
        <!--页面内容结束-->
        <div th:if="${not #lists.isEmpty(item.childs)}"
             th:include="sys/resource/child :: resourceChild"
             th:with="index=${index+1},level=${level+1},treeList=${item.childs}"></div>
    </th:block>
</div>